<template>
	<view style="padding: 0 20rpx; background-color: #141414;">
		<view class="header-title">
			<text class="header-text">水印模板</text>
			<view class="header-close">
				<up-icon name="arrow-down" @click="popupshowclose" color="#fff" size="22"></up-icon>
			</view>
		</view>
		<scroll-view scroll-y="true" class="scroll-view">
			<view class="card-list">
				<view class="card-list-item" @click="selectTemplete(1)">
					<view class="templete-header">
						<text style="font-size: 26rpx; color: #fff;text-align: center;">签到打卡</text>
					</view>
					<view class="templete-content">
						<view>
							<view><text style="font-size: 38rpx;color: #fff;">08:32</text></view>
							<view><text style="font-size: 20rpx;color: #fff;">2025.08.01</text></view>
						</view>
						<view style="border-right: 1px solid #fff;height: 60rpx;margin: 0 10rpx;margin-top: 10rpx;"></view>
						<view>
							<view><text style="font-size: 20rpx;color: #fff;margin-top: 10rpx;">签到打卡·绿港人</text></view>
							<view><text style="font-size: 20rpx;color: #fff;margin-top: 10rpx;">江苏绿港</text></view>
						</view>
					</view>
				</view>
				<view class="card-list-item2" @click="selectTemplete(2)">
					<view class="templete-header">
						<text style="font-size: 26rpx; color: #fff;text-align: center;">工程水印</text>
					</view>
					<view style="flex: 1;display: flex;justify-content: center;">
						<view style="width: 320rpx;">
							<view style="display: flex;flex-direction: row;background-color: #90d4bb;padding: 0 10rpx; border-radius: 10rpx 10rpx 0 0;">
								<text style="font-size: 20rpx;color: #fff;">公司logo </text>
								<text style="font-size: 20rpx;color: #fff;">工程项目名称</text>
							</view>
							<view style="background-color: #e1e3e5;display: flex;flex-direction: column;padding: 0 10rpx;">
								<text style="font-size: 16rpx;">施工内容:</text>
								<text style="font-size: 16rpx;">拍摄时间:</text>
								<text style="font-size: 16rpx;">天&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;气:</text>
								<text style="font-size: 16rpx;">地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;点:</text>
								<text style="font-size: 16rpx;">方&nbsp;&nbsp;位&nbsp;&nbsp;角:</text>
							</view>
							<view style="display: flex;flex-direction: row;background-color: #90d4bb;border-radius: 0 0 10rpx 10rpx;padding: 0 10rpx;">
								<text style="font-size: 20rpx;color: #fff;">施工单位:</text>
							</view>
						</view>
					</view>
				</view>
			</view>
			<view class="card-list">
				<view class="card-list-item3" @click="selectTemplete(99)">
					<up-icon name="minus-circle" color="#909399"></up-icon>
					<text style="font-size: 26rpx;color: #909399;">无水印</text>
				</view>
			</view>
		</scroll-view>
	</view>
</template>

<script>
	var _this;
	export default {
	  name: 'WatermarkTemplete',
	  data () {
		  return {
			  showProj:false,
			  
		  }
	  },
	created() {
		//console.log("123===", this.userInfo)
		_this = this;
	},
	methods:{
		popupshowclose () {
			this.$emit('handleClose',null);
		},
		selectTemplete(templeteId) {
			console.log("templeteId====", templeteId);
			let path = '';
			// #ifdef APP-PLUS
			if(templeteId == 1) {
				path = '/pages/watermarkCamera/home?templeteId='+templeteId;
			}else if(templeteId == 2) {
				path = '/pages/watermarkCamera/index';
			}else if(templeteId == 99) {
				path = '/pages/watermarkCamera/home?templeteId='+templeteId;
			}
			// #endif
			// #ifdef H5
			path = '/components/watermarkCamera/h5camera?templeteId='+templeteId;
			// #endif
			uni.redirectTo({
				url:path
			})
		}
	}
}
</script>

<style lang="scss" scoped>
	.header-title {
		height: 80rpx; 
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	    border-bottom: 0.5px solid gray;
		.header-close {
			.up-icon {
				font-size: 40rpx;
			}
		}
	
		.header-text {
			font-size: 30rpx;
			color: #fff;
		}
	}
	.scroll-view {
		height: 500rpx;
		// #ifdef H5
		width: 90vw;
		// #endif
		padding: 20rpx;
		.card-list {
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			margin-bottom: 30rpx;
			.card-list-item {
				height: 220rpx;
				width: 320rpx;  
				background-color: #262626;
				border-radius: 10rpx;
				display: flex;
				flex-direction: column;
				.templete-header {
					background-color: #dd9b00;
					border-radius: 10rpx 10rpx 0 0;
					width: 320rpx;
					text-align: center;
					flex: 0 0 auto;
				}
				.templete-content {
					display: flex;
					flex-direction: row;
					justify-content: center;
					align-items: center;
					padding: 0 10rpx;
					flex: 1;
				}
			}
			.card-list-item2 {
				height: 220rpx;
				width: 320rpx; 
				background-color: #262626;
				border-radius: 10rpx;
				display: flex;
				flex-direction: column;
				.templete-header {
					background-color: #dd9b00;
					border-radius: 10rpx 10rpx 0 0;
					width: 320rpx;
					text-align: center;
					flex: 0 0 auto;
				}
			}
			.card-list-item3 {
				height: 220rpx;
				width: 320rpx; 
				display: flex;
				flex-direction: row;
				justify-content: center;
				align-items: center; 
				background-color: #262626;
				border-radius: 10rpx;
			}
			.item-hover {
				background-color: red !important;
			}
		}
	}
</style>